package video.com.utils;

import java.util.Map;

public class UserInfoUtils {

    private static ThreadLocal<Map<String,Object>> threadLocal = new ThreadLocal<>();


    public static Map<String,Object> getUserInfo(){
        return threadLocal.get();
    }

    public static void remove(){
        threadLocal.remove();
    }

    public static void add(Map<String,Object> value){
        threadLocal.set(value);
    }
}
